package org.openems;

import java.util.Arrays;
import java.util.List;

import javax.xml.bind.annotation.XmlRootElement;

import org.apache.commons.lang3.ArrayUtils;

@XmlRootElement
public class DoubleArray {
	public DoubleArray() {}
	public DoubleArray(double[] d) {
		data = Arrays.asList(ArrayUtils.toObject(d));
	}

	public DoubleArray(Double[] d) {
		data = Arrays.asList(d);
	}

	public List<Double> data;
}
